<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Criar um novo cliente</title>
</h:head>
<h:body>
	<h1>Criar um novo Cliente</h1>
	<hr />
	<h:form id="form">
		<p:panelGrid columns="2">
			<f:facet name="header">
        		Dados do cliente
    		</f:facet>
			
			<p:outputLabel for="proponente" value="Nome :" />
			<p:inputText id="proponente" value="#{clienteController.cliente.proponente}" />

			<p:outputLabel for="email" value="Email :" />
			<p:inputText id="email" value="#{clienteController.cliente.email}" />

			<p:outputLabel for="cpf" value="CPF :" />
			<p:inputText id="cpf" value="#{clienteController.cliente.cpf}" />

		</p:panelGrid>
		
		<p:panel>
			<p:commandButton value="Criar novo cliente" actionListener="#{clienteController.createCliente}" ajax="false" />
		</p:panel>	
		
	</h:form>
</h:body>
</html>